package com.joven.shelltest.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 评论索引表
 * </p>
 *
 * @author joven
 * @since 2024-11-08
 */
@Data
@TableName("discuss_comments")
public class Comments implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 文章id
     */
    private Long articleId;
    private Long parentId;
    private Long userId;

    /**
     * 这条评论的回复数量
     */
    private Integer replyCount;

    /**
     * 这条评论的点赞数量
     */
    private Integer likeCount;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    private Integer isDelete;


}
